import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule} from '@angular/router';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';

import {AuthGuard} from './auth-guard';
import {AuthLoginComponent} from './auth-login/auth-login.component';
import {AuthRegistrationComponent} from './auth-registration/auth-registration.component';
import {authRoutes} from './auth.routes';
import {AuthUserService} from './auth-user.service';

@NgModule({
    imports: [
        CommonModule,
        RouterModule.forChild(authRoutes),
        FormsModule,
        ReactiveFormsModule,
    ],
    declarations: [
        AuthLoginComponent,
        AuthRegistrationComponent,
    ],
    providers: [
        AuthGuard,
        AuthUserService
    ]
})
export class AuthModule {
}
